-- GENERATED SPELL FOR [Lady Moongazer] --


function spell0_2184(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2184', 2264, 1)
end

function spell1_2184(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2184', 602, 1)
end

function Sorts_2184(pUnit, Event)
local choix_sorts_2184 = math.random(0, 1)
if choix_sorts_2184 == 0 then
pUnit:RegisterEvent('spell0_2184', 1, 1)
end
if choix_sorts_2184 == 1 then
pUnit:RegisterEvent('spell1_2184', 1, 1)
end
end

function mob2184_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2184', math.random(1500, 3000), 1)
end

function mob2184_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2184_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2184_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2184, 1, 'mob2184_Action')
RegisterUnitEvent(2184, 2, 'mob2184_Leave')
RegisterUnitEvent(2184, 3, 'mob2184_Kill')
RegisterUnitEvent(2184, 4, 'mob2184_Die')
